import { Module } from '@nestjs/common';
import { PowerService } from './power.service';
import { PowerResolver } from './power.resolver';
import { MongooseModule } from '@nestjs/mongoose';
import { Power, PowerSchema } from './entities/power.entity';
import { MenuModule } from '../menu/menu.module';

@Module({
  providers: [PowerResolver, PowerService],
  imports: [
    MenuModule,
    MongooseModule.forFeature([{ name: Power.name, schema: PowerSchema }]),
  ],
  exports: [
    PowerService
  ]
})
export class PowerModule { }
